package com.gateway.video.rtsp;

import com.gateway.video.container.AbstarctSpringModule;
import com.gateway.video.container.Module;
import lombok.var;
import org.kohsuke.MetaInfServices;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@MetaInfServices(Module.class)
public class VideoModule extends AbstarctSpringModule {
    @Override
    protected ConfigurableApplicationContext newApplicationContext() {
        var context = (AnnotationConfigApplicationContext)super.newApplicationContext();
        context.register(VideoConfiguration.class);
        context.refresh();

        return context;
    }
}
